From: Sebastian Keller Date: Mon, 22 Mar 2021 00:50:25 +0000 (+0100) Subject: appDisplay: Don't use symbolic icon at full size for system actions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~35 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=401b584384f534c11f89875628497c2cbd83feb1;p=gnome-shell.git appDisplay: Don't use symbolic icon at full size for system actions When attempting to account for scaling in e65e5ede the icon_size of the StIcon was set to the target size, overriding the icon-size set in the 'system-action-icon' CSS, which was only half the size. The intent of that commit however was not to scale up the symbolic icon, but the circle around it. Do this by manually applying the scaling factor. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3940 Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 2cfd2cd03..b926aab98 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1855,6 +1855,7 @@ var AppSearchProvider = class AppSearchProvider { } getResultMetas(apps, callback) { + const { scaleFactor } = St.ThemeContext.get_for_stage(global.stage); let metas = []; for (let id of apps) { if (id.endsWith('.desktop')) { @@ -1871,7 +1872,8 @@ var AppSearchProvider = class AppSearchProvider { const createIcon = size => new St.Icon({ icon_name: iconName, - icon_size: size, + width: size * scaleFactor, + height: size * scaleFactor, style_class: 'system-action-icon', });